<template>
  <div class="dialogConfirmViewContainer">
    <div class="btnsContanier">
      <div class="btn" v-show="this.hasCancel">
          <div class="content">{{ this.$i18n.t("btnTitle.cancel") }}</div>
        </div>
        <div class="divicerContainer" v-show="this.hasCancel && this.hasConfirm">
          <div class="divider"></div>
        </div>
        <div class="btn" v-show="this.hasConfirm">
          <div class="content">{{ this.$i18n.t("btnTitle.confirm") }}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    hasConfirmPro: {
      type: Boolean,
      default: false,
    },
    hasCancelPro: {
      type: Boolean,
      default: true,
    },
  },
  data() {
    return {
      hasConfirm: false,
      hasCancel: true,
    };
  },
  mounted() {
    this.hasConfirm = this.hasConfirmPro;
    this.hasCancel = this.hasCancelPro;
  },
  watch: {
    hasConfirmPro(newVal) {
      this.hasConfirm = newVal;
    },
    hasCancelPro(newVal) {
      this.hasCancel = newVal;
    },
  },
};
</script>
<style scoped>
.dialogConfirmViewContainer {
  height: 56px;
  width: 100%;
  /* background: rgba(255, 255, 0, 0.5); */
  display: flex;
  flex-direction: column;
}
.dialogConfirmViewContainer .btnsContanier {
  height: 40px;
  width: 100%;
  /* background: rgba(255, 0, 0, 0.5); */
  display: flex;
  flex-direction: row;
}
.dialogConfirmViewContainer .btnsContanier .btn {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.dialogConfirmViewContainer .btnsContanier .btn .content {
  font-size: 16px;
  color: var(--current-second-title-select-color);
}
.dialogConfirmViewContainer .btnsContanier .divicerContainer {
  height: 100%;
  width: 0.25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.dialogConfirmViewContainer .btnsContanier .divider {
  height: 32px;
  width: 0.25px;
  background: var(--current-divider-line-color);
}
</style>
